package com.qf.mapper;

import com.qf.model.Permission;
import com.qf.model.Project;
import org.apache.ibatis.annotations.One;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.mapping.FetchType;

import java.util.List;

public interface PermissionMapper {
    @Results(id = "PermissionMap",value = {
            @Result(column = "link_url",property = "linkUrl"),
    })
    @Select("select * from permission where parent_id=#{id}")
    public List<Permission> findAll(int id);


}
